package com.agileboot.domain.bot.botQuestion.dto;

import cn.hutool.core.bean.BeanUtil;
import com.agileboot.common.annotation.ExcelColumn;
import com.agileboot.domain.bot.botQuestion.db.BotQuestionEntity;

import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BotQuestionDTO {

    public BotQuestionDTO(BotQuestionEntity entity) {
        if (entity != null) {
            BeanUtil.copyProperties(entity, this);
        }
    }

    @ExcelColumn(name = "问题ID")
    private Integer id;

    @ExcelColumn(name = "问题内容")
    private String question;

    @ExcelColumn(name = "答案内容")
    private String answer;

    @ExcelColumn(name = "创建用户")
    private String createUser;

    private Date createTime;
}
